package com.bjsxt.shop.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.shop.common.controller.BaseController;
import com.bjsxt.shop.common.util.ConstatFinalUtil;
import com.bjsxt.shop.goods.service.IGoodsStatService;

/**
 * 存储所有的统计
 * 
 * @author wangshSxt
 *
 */
@Controller
@RequestMapping("/back/stat")
public class StatBackController extends BaseController
{
	@Resource
	private IGoodsStatService goodsStatService;
	/**
	 * 商品分类统计
	 * @return
	 */
	@RequestMapping("/goodsCateList")
	public String goodsCateList(HttpServletRequest request)
	{
		ConstatFinalUtil.LOGGER.info("--goodsCateList--");
		Map<String, Object> paramsMap = new HashMap<String, Object>();
		List<Map> resultList = this.goodsStatService.statCateCountService(paramsMap);
		request.setAttribute("resultList", resultList);
		return "/back/stat/goodsCateList" ; 
	}
}
